package cn.jiyun.entity.day10;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author sjt
 * @Date 2023/8/7 11:31
 * @PackageName: cn.jiyun.entity.day10.Topic
 */
@TableName("t_topic")
@Data
public class Topic {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String name;
    private Integer tid;
    private String tag;
    private Integer uid;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date createdate;

    private Integer fen;

}
